package com.softtown.modules.dapai.dao;

import com.softtown.common.dao.BaseDao;
import com.softtown.modules.dapai.dto.CompOutboundOrderDTO;
import com.softtown.modules.dapai.dto.CompOutboundOrderDetailDTO;
import com.softtown.modules.dapai.entity.CompOutboundOrderDetailEntity;
import com.softtown.modules.dapai.entity.CompOutboundOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface CompOutboundOrderDao extends BaseDao<CompOutboundOrderEntity> {

    List<CompOutboundOrderDTO> getOutboundOrderPageList(@Param("compId")Long compId,@Param("pram") String pram );

    List<CompOutboundOrderDetailDTO> getOutboundOrderDetailPageList(@Param("compId")Long compId, @Param("pram") String pram );

    CompOutboundOrderEntity getOutboundOrderById(@Param("compId")Long compId, @Param("id")Long id);

    List<CompOutboundOrderDetailEntity> getOutboundOrderDetailList(@Param("compId")Long compId, @Param("id")Long id);

    void deleteOutboundOrder(@Param("compId")Long compId, @Param("id")Long id);

    void deleteDetail(@Param("compId")Long compId, @Param("id")Long id);

    void updateMacStock(@Param("compId")Long compId, @Param("id")Long id, @Param("stock")int stock);

}
